package com.cg.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cg.dao.BaseBusinessDao;
import com.cg.entity.BaseBusiness;
import com.cg.utils.R;


/**
 * 基本布局
 * @author cumt
 *
 */
@Service("baseBusinessServiceImpl")
public class BaseBusinessServiceImpl {

	
	
	@Autowired
	BaseBusinessDao baseBusinessDao;
	
	public List<BaseBusiness> queryList(Map<String,Object> query){
		
		return baseBusinessDao.queryList(query);
	}
	
	
	
	public R save(BaseBusiness business){
		baseBusinessDao.save(business);
		return R.ok();
	}
	
	public int queryTotal(Map<String,Object> query) {
		
		return baseBusinessDao.queryTotal();
	}
	
	public R update(BaseBusiness BaseBusiness){
		baseBusinessDao.update(BaseBusiness);
		return R.ok();
	}
	
	public void deleteBatch(Long[] ids) {
		baseBusinessDao.deleteBatch(ids);
	}

	
	public BaseBusiness queryObject(Long id) {
		return baseBusinessDao.queryObject(id);
	}
	
	
}
